$def with(lst, pager, msg = '')
$:render.admin.header()

<div class="itemtitle">
    <h3>合作商家</h3>
    <ul class="tab1">
        <li class="current"><a href="$config.ADMIN_DIR/partner"><span>管理</span></a></li>
        <li><a href="$config.ADMIN_DIR/partner/add"><span>添加</span></a></li>
    </ul>
</div>
$if lst.result:
    <form method="post" action="">
    <div class="msg">
        $if msg:
            $:msg
    </div>
    <table class="tb tb2">
        <tr>
            <th class="partition" colspan="9">共有<strong> $lst.totals </strong>条商家信息记录</th>
        </tr>
        <tr class="header">
            <th width="70">&nbsp;</th>
            <th width="100">名称</th>
            <th width="100">域名</th>
            <th>推广路径</th>
            <th width="50">排序</th>
            <th width="40">蜘蛛</th>
            <th width="40">&nbsp;</th>
        </tr>
        $for info in lst.result:
            <tr>
                <td><img src="$:get_media_url(info.logo, 3)" width="60" /></td>
                <td><a href="$config.ADMIN_DIR/partner/edit/$info.id">$info.name</a></td>
                <td>$info.domain</td>
                <td>$:info.spread_url</td>
                <td>$info.sort</td>
                <td><a href="$config.ADMIN_DIR/partner/spider">设置</a></td>
                <td><a href="$config.ADMIN_DIR/partner/edit/$info.id">编辑</a></td>
            </tr>
        <tr>
            <td colspan="2">
                <!--
                <input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll('prefix', this.form, 'deleteids')" /><label for="chkall">全选</label>
                <input type="submit" class="btn" value="删除">
                -->
            </td>
            <td colspan="7" align="right"><div class="pages">$:pager</div></td>
        </tr>
    </table>
    </form>
$else:
    <table class="tb tb2">
        <tr>
            <th class="partition" colspan="10">未找到符合条件的商家信息</th>
        </tr>
    </table>

$:render.admin.footer()
